/*
 * @Author: dfh
 * @Date: 2024-03-15 09:48:51
 * @LastEditors: dfh
 * @Modified By: dfh
 * @describe: 
 */
import http from "@/utils/request";


export function fetchExchangeRateList() {
    return http.get({
        url: `/api/v1/currency/list`
    });
}

export function fetchExchangeRate(data) {
    return http.post({
        url: `/api/v1/currency/rate`,
        data
    });
}

export function syncExchangeRate() {
    return http.get({
        url: `/api/v1/currency/sync`
    });
}

export function exchangeRateHistoryList(data) {
    return http.post({
        url: `/api/v1/currency/history/list`,
        data
    });
}